package main;

import java.util.ArrayList;
import java.util.List;

import lexical.LexicalAnalyzer;
import parser.LL1Parser;

public class Main {
	public static String EPSILON = "eps";
	
	public static void main(String[] args) {
		
		LexicalAnalyzer lex = new LexicalAnalyzer();
		lex.analyze("toBeAnalized");
		lex.printResult(System.out);
		ArrayList<String> codes = lex.getPifTokenCodes();
		System.out.println(codes.toString());
		
		LL1Parser parser = new LL1Parser();
		List<String> productionStrings = parser.parse(codes);
		System.out.println(productionStrings);
		
		
	}

}
